#include <sstream>
#include <iostream>
using std::cout;
using std::endl;
using std::ostringstream;
using std::string;

void test0(){
    int num = 123;
    int num2 = 456;
    ostringstream oss;
    oss << "num = " << num << ",num2=" << num2 << endl;
    cout << oss.str() << endl;
}

int main(void){
    test0();
    return 0;
}
